package com.dzl.moive.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.moive.pojo.WelfareMovieCinema;
import com.dzl.moive.pojo.query.WelfareMovieCinemaQuery;
import com.dzl.moive.pojo.query.WelfareMovieCinemaWithCodeQuery;
import com.dzl.moive.pojo.vo.WelfareMovieCinemaVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电影院(welfare_movie_cinema)表数据库访问层
 * @author liuguanjun
 * @date 2021-11-02 11:04:54
 */
public interface WelfareMovieCinemaMapper extends BaseMapper<WelfareMovieCinema> {

    /**
     * 影院列表列表查询，包括经纬度和距离-小程序端
     * @date 2021/10/12 15:37
     * @author liuguanjun
     * @param query 打款批次查询条件
     */
    List<WelfareMovieCinemaVo> selectWelfareMovieCinemaVoList(WelfareMovieCinemaQuery query);

    /**
     * 获取电影影院列表，不包括经纬度和距离 -服务端
     * @date 2021/10/12 15:37
     * @author ChenLong
     * @param query 查询实体
     */
    List<WelfareMovieCinema> getMovieCinemaListPage(WelfareMovieCinemaWithCodeQuery query);

    /**
     * 批量添加影院
     * @date 2021/11/09 15:53
     * @author liuguanjun
     * @param list 影院列表
     */
    Integer insertMovieCinemaList(@Param("list") List<WelfareMovieCinema> list);
}

